
package com.qf.model;

import java.util.ArrayList;
import java.util.List;

public class User {
	/*
	 * `uid` int(11) NOT NULL AUTO_INCREMENT,
  `uname` varchar(50) DEFAULT NULL,
  `upwd` varchar(50) DEFAULT NULL,
  `utel` varchar(15) DEFAULT NULL,
	 */
	private int  uid;
	private String uname;
	private String upwd;
	private String utel;
	private List<TelBook> telBooks=new ArrayList<>();
	private List<Contact> contacts=new ArrayList<>();
	public int getUid() {
	
		return uid;
	}
	public void setUid(int uid) {
	
		this.uid = uid;
	}
	public String getUname() {
	
		return uname;
	}
	public void setUname(String uname) {
	
		this.uname = uname;
	}
	public String getUpwd() {
	
		return upwd;
	}
	public void setUpwd(String upwd) {
	
		this.upwd = upwd;
	}
	public String getUtel() {
	
		return utel;
	}
	public void setUtel(String utel) {
	
		this.utel = utel;
	}
	public List<TelBook> getTelBooks() {
	
		return telBooks;
	}
	public void setTelBooks(List<TelBook> telBooks) {
	
		this.telBooks = telBooks;
	}
	public List<Contact> getContacts() {
	
		return contacts;
	}
	public void setContacts(List<Contact> contacts) {
	
		this.contacts = contacts;
	}
	@Override
	public String toString() {
		return "User [uid=" + uid + ", uname=" + uname + ", upwd=" + upwd + ", utel=" + utel + ", telBooks=" + telBooks
				+ ", contacts=" + contacts + "]";
	}
	public User(int uid, String uname, String upwd, String utel, List<TelBook> telBooks, List<Contact> contacts) {
		super();
		this.uid = uid;
		this.uname = uname;
		this.upwd = upwd;
		this.utel = utel;
		this.telBooks = telBooks;
		this.contacts = contacts;
	}
	public User() {
		
		super();
		//TODO 
			
	}
	
	
	
}

	